<?php

namespace app\index\controller;

use app\common\controller\Frontend;

use excel\phpExcel;
use Overtrue\ChineseCalendar\Calendar;
class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        date_default_timezone_set('PRC');

        $year = date('Y');
        $month = date('m');
        $day = date('d');
        $hour = date('H');

        $calendar = new Calendar();

        $dateInfo = $calendar->solar($year, $month, $day, $hour); // 阳历

        //TD($dateInfo);

        $this->view->assign('dateInfo', $dateInfo);
        return $this->view->fetch();
    }




}
